import { createStore } from "vuex";
import { App } from "vue";
const store = createStore<{ menus: {}[] }>({
  state() {
    return {
      menus: [],
    };
  },
  getters: {},
  mutations: {
    updateMenus(state, menus) {
      state.menus = menus;
    },
  },
  actions: {},
  modules: {},
});

export const initStore = (app: App<Element>) => {
  app.use(store);
};
